These directories contain configuration files that instruct macOS on how and when to launch the associated processes, which run in the background to perform various tasks, like syncing data or checking for software updates.
设置 Mac 的开机启动任务并不麻烦,搜索一下就能找到很多方法。但是如果是给 Mac 添加「唤醒」启动任务,似乎答案就会少了很多。这里的「唤醒」和「开机」是两个分开的事情,「开机」就是让 Mac 进入系统的过程,「唤醒」则是将已经启动的系统恢复的过程,我把他们统称为「Mac 启动」 。 今天想给 Mac 设置一个功能就是: 在唤醒 Mac 时,运行 Shell 脚本完成自定义的任务 。摸索了一下,找到了我认为最好的解决方案。 本文纲要: •设置 Mac 启动选项的几种方法 •Launchd 配置